//package com.sixth.filter;
//
//import org.springframework.cloud.gateway.filter.GatewayFilterChain;
//import org.springframework.cloud.gateway.filter.GlobalFilter;
//import org.springframework.core.Ordered;
//import org.springframework.http.server.reactive.ServerHttpRequest;
//import org.springframework.http.server.reactive.ServerHttpResponse;
//import org.springframework.stereotype.Component;
//import org.springframework.web.server.ServerWebExchange;
//import reactor.core.publisher.Mono;
//
///**
// * @program: self-tui-education
// * @description:
// * @author: 高振杨
// * @create: 2022-04-15 11:49
// * 访问接口路径时判断你是否有权限
// **/
//@Component
//public class AuthoricationLogin implements GlobalFilter, Ordered {
//    @Override
//    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
//
//        ServerHttpRequest request = exchange.getRequest();
//        ServerHttpResponse response = exchange.getResponse();
//        //判断你的请求路径 该用户是否具有该权限  vue路径要和数据库匹配  controller接口也要匹配
//        String path = request.getPath().toString();
//
//
//
//
//        return null;
//    }
//
//    @Override
//    public int getOrder() {
//        return 0;
//    }
//}
